package com.home.qh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.home.qh.dao.CtrKindPackageDao;
import com.home.qh.model.CtrKindPackage;
import com.home.qh.service.CtrKindPackageManager;

/**
 * Implementation of RoleManager interface.
 *
 * @author <a href="mailto:dan@getrolling.com">Dan Kibler</a>
 */
@Service("ctrKindPackageManager")
public class CtrKindPackageManagerImpl extends GenericManagerImpl<CtrKindPackage, Long> implements CtrKindPackageManager {
	CtrKindPackageDao ctrKindPackageDao;

    @Autowired
    public CtrKindPackageManagerImpl(CtrKindPackageDao ctrKindPackageDao) {
        super(ctrKindPackageDao);
        this.ctrKindPackageDao = ctrKindPackageDao;
    }

	public List<CtrKindPackage> getCtrKindPackageByCodeAndName(String ctrKindPackageCode,
			String ctrKindPackageName) {
		return ctrKindPackageDao.getCtrKindPackageByCodeAndName(ctrKindPackageCode, ctrKindPackageName);
	}

	public List<CtrKindPackage> getCtrKindPackageByCtrKindPackage(CtrKindPackage ctrKindPackage, String sort, boolean desc, int startResult, int maxResults) {
		return ctrKindPackageDao.getCtrKindPackageByCtrKindPackage(ctrKindPackage, sort, desc, startResult, maxResults);
	}

}